package com.linkdiner.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.dispatcher.mapper.ActionMapping;

import com.linkdiner.dispatcher.MainDispatcher;

/**
 * Servlet implementation class Main
 */
public class MainServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private MainDispatcher dispatcher =new MainDispatcher();
    /**
     * Default constructor. 
     */
    public MainServlet() {
        // TODO Auto-generated constructor stub
    }

    @Override
    public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    	dispatcher.dispatch(request, response);
    }


}
